home *** CD-ROM | disk | FTP | other *** search
- <HTML onClick="displayEventSource(this);">
-
- <HEAD>
-
- <TITLE>The Event Path</TITLE>
-
-
-
- <SCRIPT>
-
- function displayEventSource(element)
-
- {
-
- if (element == event.srcElement)
-
- eventPath = "";
-
-
-
- eventPath += element.tagName + " ---> ";
-
- document.all.results.innerHTML = eventPath;
-
- }
-
-
-
- </SCRIPT>
-
- </HEAD>
-
-
-
- <BODY onClick="displayEventSource(this);">
-
- <H2>The Event Path</H2>
-
-
-
- <BLOCKQUOTE onClick="displayEventSource(this);">
-
- <P>
-
- Events bubble up the document hierarchy from a page element
-
- to its parent element. By clicking on a page element, a
-
- click event is generated that travels up the document
-
- hierarchy triggering any <TT>onClick</TT> event handlers
-
- bound to a page element.
-
- </P>
-
-
-
- <P onClick="displayEventSource(this);">
-
- <B onClick="displayEventSource(this);">
-
- Click here
-
- </B>
-
- to see the path an event takes from the <TT>B</TT> element
-
- up the document hierarchy.
-
- </P>
-
-
-
- <P><B>Event Path:</B><BR>
-
- <PRE ID=results>
-
- </PRE>
-
- </P>
-
- </BLOCKQUOTE>
-
-
-
- </BODY>
-
- </HTML>
-
-